class wapper():
    name = "zhangsa"

    class inner:
        def __init__(self):
            w = wapper()
            self.name = w.name

    def __str__(self):
        return self.name




w = wapper()
i = w.inner()
print(i.name)
print(w)